package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 消息内容表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-26
 */
@TableName("bus_msg_content")
public class MsgContent extends Model<MsgContent> {

	private static final long serialVersionUID = 1L;

	/**
	 * 消息内容Id
	 */
	@TableId(value = "msg_content_id", type = IdType.AUTO)
	private Integer msgContentId;
	/**
	 * 消息内容
	 */
	@TableField("msg_content")
	private String msgContent;
	/**
	 * 消息类型(1用户消息2服务消息3订单消息/支付消息)
	 */
	@TableField("msg_type")
	private Integer msgType;
	/**
	 * 消息类别（0：用户消息，1：管理员消息）
	 */
	@TableField("msg_category")
	private Integer msgCategory;

	/**
	 * 是否已读（0：未读，1：已读）
	 */
	@TableField("if_read")
	private Integer ifRead;
	/**
	 * 消息接收者
	 */
	@TableField("create_man")
	private Integer createMan;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@TableField("update_time")
	private Date updateTime;
	/**
	 * 删除标记（0：删除，1：未删除）
	 */
	@TableLogic
	private Integer flag;

	public Integer getMsgContentId() {
		return msgContentId;
	}

	public void setMsgContentId(Integer msgContentId) {
		this.msgContentId = msgContentId;
	}

	public String getMsgContent() {
		return msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	public Integer getMsgType() {
		return msgType;
	}

	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}

	public Integer getMsgCategory() {
		return msgCategory;
	}

	public void setMsgCategory(Integer msgCategory) {
		this.msgCategory = msgCategory;
	}

	public Integer getIfRead() {
		return ifRead;
	}

	public void setIfRead(Integer ifRead) {
		this.ifRead = ifRead;
	}

	public Integer getCreateMan() {
		return createMan;
	}

	public void setCreateMan(Integer createMan) {
		this.createMan = createMan;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	@Override
	protected Serializable pkVal() {
		return this.msgContentId;
	}

	@Override
	public String toString() {
		return "MsgContent{" + "msgContentId=" + msgContentId + ", msgContent=" + msgContent + ", msgType=" + msgType
				+ ", msgCategory=" + msgCategory + ", ifRead=" + ifRead + ", createMan="
				+ createMan + ", createTime=" + createTime + ", updateTime=" + updateTime + ", flag=" + flag + "}";
	}
}
